package com.banmoon.decorator.myimpl;

import com.banmoon.decorator.myimpl.coffee.Coffee;
import com.banmoon.decorator.myimpl.coffee.Espresso;
import com.banmoon.decorator.myimpl.coffee.LongBlack;
import com.banmoon.decorator.myimpl.dosing.Chocolate;
import com.banmoon.decorator.myimpl.dosing.Milk;
import com.banmoon.decorator.myimpl.dosing.Sugar;

public class CoffeeShopMain {

    public static void main(String[] args) {
        LongBlack longBlack = new LongBlack();
        longBlack.setMilk(new Milk());
        longBlack.setSugar(new Sugar());
        System.out.println(longBlack.getDesc());
        System.out.println("金额是：" + longBlack.cost());

        System.out.println("==================== 分割线 ====================");
        Coffee espresso = new Espresso();
        espresso.setMilk(new Milk());
        espresso.setSugar(new Sugar());
        espresso.setChocolate(new Chocolate());
        System.out.println(espresso.getDesc());
        System.out.println("金额是：" + espresso.cost());
    }
}
